package springboot.activemq;

import javax.jms.JMSException;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class Consumer {

	@JmsListener(destination="test")
	public void receiveQueue(String msg) throws JMSException {
		if(msg != null) {
			System.out.println("receive msg = " + msg);
		}
	}
}
